import { FormControl, type ValueAccessibleComponent, type ValueAccessor } from "solid-form-context";
import type { FcFormControlProps } from "./types";
import type { ValidComponent, ComponentProps } from "solid-js";

const FcFormControl = <
  V,
  C extends ValueAccessibleComponent<V, ValueAccessor<V>> | ValidComponent,
  P extends ComponentProps<C>,
  K extends keyof P
>(
  props: FcFormControlProps<V, C, P, K>
) => {
  return <FormControl {...props}></FormControl>;
};

export default FcFormControl
export type * from './types'
